package com.etymgiko.lyricscollectionseam.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;

import com.etymgiko.lyricscollectionseam.entity.Song;

/**
 * @author Ivan Holub
 */
@Name("songList")
public class SongList extends EntityQuery<Song> {

	private static final String EJBQL = "from Song song left join fetch song.artist fk order by fk.name, song.title";

	public SongList() {
		setEjbql(EJBQL);
	}

}
